package com.ds.dsfans.liteflow.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ds.dsfans.common.annotation.Excel;
import com.ds.dsfans.common.core.domain.BaseEntity;

/**
 * 规则引擎chain对象 liteflow_chain
 * 
 * @author dsfans
 * @date 2024-07-11
 */
public class LiteflowChain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主机ID */
    private Long id;

    /** 应用名称 */
    @Excel(name = "应用名称")
    private String applicationName;

    /** chain名称 */
    @Excel(name = "chain名称")
    private String chainName;

    /** chain描述 */
    @Excel(name = "chain描述")
    private String chainDesc;

    /** 表达式内容 */
    @Excel(name = "表达式内容")
    private String elData;

    /** 路由规则 */
    @Excel(name = "路由规则")
    private String route;

    /** 命名空间 */
    @Excel(name = "命名空间")
    private String namespace;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Integer enable;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setApplicationName(String applicationName) 
    {
        this.applicationName = applicationName;
    }

    public String getApplicationName() 
    {
        return applicationName;
    }

    public void setChainName(String chainName) 
    {
        this.chainName = chainName;
    }

    public String getChainName() 
    {
        return chainName;
    }

    public void setChainDesc(String chainDesc) 
    {
        this.chainDesc = chainDesc;
    }

    public String getChainDesc() 
    {
        return chainDesc;
    }

    public void setElData(String elData) 
    {
        this.elData = elData;
    }

    public String getElData() 
    {
        return elData;
    }

    public void setRoute(String route) 
    {
        this.route = route;
    }

    public String getRoute() 
    {
        return route;
    }

    public void setNamespace(String namespace) 
    {
        this.namespace = namespace;
    }

    public String getNamespace() 
    {
        return namespace;
    }

    public void setEnable(Integer enable) 
    {
        this.enable = enable;
    }

    public Integer getEnable() 
    {
        return enable;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("applicationName", getApplicationName())
            .append("chainName", getChainName())
            .append("chainDesc", getChainDesc())
            .append("elData", getElData())
            .append("route", getRoute())
            .append("namespace", getNamespace())
            .append("createTime", getCreateTime())
            .append("enable", getEnable())
            .toString();
    }
}
